package com.wish233.wiliwilivideo.domain.constant;

/**
 * MQ常量
 * @author WHH
 */
public interface AMQPConstant {

    // 点赞操作队列
    String LIKE_OPERATION_QUEUE = "like.operation.queue";
    String LIKE_OPERATION_EXCHANGE = "like.operation.exchange";
    String LIKE_OPERATION_ROUTING_KEY = "like_op";
    // 点赞计数队列
    String LIKE_COUNT_QUEUE = "like.count.queue";
    String LIKE_COUNT_EXCHANGE = "like.count.exchange";
    String LIKE_COUNT_ROUTING_KEY = "like_count";
    //Redis缓存更新队列
    String COMMENT_CACHE_UPDATE_QUEUE = "comment.cache.inset.queue";
    String COMMENT_CACHE_UPDATE_EXCHANGE = "comment.cache.insert.exchange";
    String COMMENT_CACHE_UPDATE_ROUTING_KEY = "comment.cache:insert";
    //Redis缓存删除队列
    String COMMENT_CACHE_DELETE_QUEUE = "comment.cache.delete.queue";
    String COMMENT_CACHE_DELETE_EXCHANGE = "comment.cache.delete.exchange";
    String COMMENT_CACHE_DELETE_ROUTING_KEY = "comment.cache.delete";

    //历史记录
    String HISTORY_UPSERT_QUEUE = "history.upsert.queue";
    String HISTORY_UPSERT_EXCHANGE = "history.upsert.exchange";
    String HISTORY_UPSERT_ROUTING_KEY = "history.upsert";

    //点赞本地缓存更新至Redis
    String LIKE_SYNC_REDIS_QUEUE = "like.local.redis.queue";
    String LIKE_SYNC_REDIS_EXCHANGE = "like.local.redis.exchange";
    String LIKE_SYNC_REDIS_ROUTING_KEY = "like.local.redis";
}
